package com.itheima.day14.atom.AtomicInteger.test2;

import java.util.concurrent.atomic.AtomicInteger;

public class MyAtormThread implements Runnable {
    AtomicInteger ai = new AtomicInteger();

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            int andGet = ai.incrementAndGet();
            System.out.println(andGet);
        }
    }
}
